package cn.iocoder.yudao.module.shop.job.statistics;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
import cn.iocoder.yudao.module.shop.service.statistics.ShopStatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class ShopDayStatistics implements JobHandler{
    @Resource
    private ShopStatisticsService shopStatisticsService;

    @Override
    @TenantJob
    public String execute(String param) throws Exception {
        shopStatisticsService.dayJob();
        return String.format("执行店铺每日统计");
    }
}
